#!/usr/bin/env python

import ttk



class GridEditor(ttk.Frame):
	def __init__(self, parent, nrows, ncols):
		ttk.Frame.__init__(self, parent)
		self.nrows = nrows
		self.ncols = ncols
		
		for r in range(self.nrows):
			for c in range(self.ncols):
				entry = ttk.Entry(self)
				entry.grid(row = r, column = c, sticky = 'nsew')
